package entity;

import lombok.Data;

import java.io.Serializable;
@Data
public class Topic implements Serializable {
    private int tid;
    private String title;
    private String context;
    private String pic;
    private String sendTime;
    private Board board;
    private Admin admin;

    public Topic(String title, Board board, Admin admin) {
        this.title = title;
        this.board = board;
        this.admin = admin;
    }

    public Topic(int tid, String title, String context, String pic, String sendTime, Board board, Admin admin) {
        this.tid = tid;
        this.title = title;
        this.context = context;
        this.pic = pic;
        this.sendTime = sendTime;
        this.board = board;
        this.admin = admin;
    }

    public Topic() {
    }
}
